import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'

import persist from 'pinia-plugin-persistedstate'
import App from './App.vue'

// 导入 pinia 实例
const pinia = createPinia()
export function createApp() {
  // 创建 vue 实例
  const app = createSSRApp(App)
	app.use(pinia.use(persist))
  

  return {
    app,
  }
}
